/*
 * robust glob pattern matcher
 * ozan s. yigit/dec 1994
 * public domain
 *
 * glob patterns:
 *	*	matches zero or more characters
 *	?	matches any single character
 *	[set]	matches any character in the set
 *	[^set]	matches any character NOT in the set
 *		where a set is a group of characters or ranges. a range
 *		is written as two characters seperated with a hyphen: a-z denotes
 *		all characters between a to z inclusive.
 *	[-set]	set matches a literal hypen and any character in the set
 *	[]set]	matches a literal close bracket and any character in the set
 *
 *	char	matches itself except where char is '*' or '?' or '['
 *	\char	matches char, including any pattern character
 *
 * examples:
 *	a*c		ac abc abbc ...
 *	a?c		acc abc aXc ...
 *	a[a-z]c		aac abc acc ...
 *	a[-a-z]c	a-c aac abc ...
 *
 * $Log: WildCard.cpp,v $
 * Revision 1.2  2006/09/05 10:19:07  wanglei
 * no message
 *
 * Revision 1.1.1.1  2006/07/09 12:39:52  wanglei
 * no message
 *
 * Revision 1.1.1.1  2005/09/28 09:36:17  wanglei
 * Megajoy Content Distribution Service Modules.
 * Including First version for Suzhou and second version 
 * for Shanxi which is including smart Content 
 * redistribution function.
 *
 * Revision 1.3  1995/09/14  23:24:23  oz
 * removed boring test/main code.
 *
 * Revision 1.2  94/12/11  10:38:15  oz
 * cset code fixed. it is now robust and interprets all
 * variations of cset [i think] correctly, including [z-a] etc.
 * 
 * Revision 1.1  94/12/08  12:45:23  oz
 * Initial revision
 */
#pragma once
#include <windows.h>


BOOL WildCardMatchA( const char *str, const char *p );
BOOL WildCardMatchW( const WCHAR *str, const WCHAR *p );

#ifdef _UNICODE
#define WildCardMatch WildCardMatchA
#else
#define WildCardMatch WildCardMatchW
#endif